<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>元素可编辑模式</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }

        body {
            font-size: 30px;
        }
    </style>
</head>
<body>
    <h2 contenteditable="true">竹外桃花三两只，春江水暖鸭先知。</h2>
    <div contenteditable="true">竹外桃花三两只，春江水暖鸭先知。</div>

    <p>hello</p>
    <span>hello</span>

    <script type="text/javascript">
        // 开启全文可编辑模式
        document.designMode = "on";
    </script>
</body>
</html>